package com.icss.service.impl;

import com.icss.dao.IUserDao;
import com.icss.domian.QueryVO;
import com.icss.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private IUserDao iUserDao;


    @Override
    public List<QueryVO> findAllUserName() {
        return iUserDao.findAllUserName();
    }

    @Override
    public List<QueryVO> findRecordLicenseByUserId(Integer UserId) {
        return iUserDao.findRecordLicenseByUserId(UserId);
    }

    @Override
    public List<QueryVO> findAllUserIllega() {
        return iUserDao.findAllUserIllega();
    }

    @Override
    public void updateUserPhoneByUserID(Integer UserId, String phone) {
       iUserDao.updateUserPhoneByUserID(UserId,phone);
    }

    @Override
    public void updateIllegalCount(Integer userId) {
        iUserDao.updateIllegalCount(userId);
    }

    @Override
    public void updateUnsettledIllegalCount(Integer illegalRecordId) {
        iUserDao.updateUnsettledIllegalCount(illegalRecordId);
    }

    @Override
    public void updateIllegalCountAndSocre(Integer userId, Integer illegalItemScore) {
        iUserDao.updateIllegalCountAndSocre(userId,illegalItemScore);
    }
}
